home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 1 / Gold Medal Software Volume 1 (Gold Medal) (1994).iso / prog / printers.arj / SAMPLE.DOC < prev    next >
Encoding:
Text File  |  1993-11-01  |  7.9 KB  |  153 lines

  1.  
  2.  ╔════════════════════════════════════════════════════════════════════════════╗
  3.  ║ ░░▒▒▓▓██▓▓▒▒░░ ░░▒▒▓▓██▓▓▒▒░░     SAMPLE     ░░▒▒▓▓██▓▓▒▒░░ ░░▒▒▓▓██▓▓▒▒░░ ║
  4.  ║                                                                            ║
  5.  ║  Version   » 1.0a                                                          ║
  6.  ║  File Type » Clarion Application                                           ║
  7.  ║  Written   » November 01, 1993, George Wilcken, Bill Guy                   ║
  8.  ║                                                                            ║
  9.  ║  Purpose   » Sample Demo On How To Add Multiple Printer Support To         ║
  10.  ║              Your Designer Applications Using Code Files Generated         ║
  11.  ║              By PRINTERS (C)1993                                           ║
  12.  ║                                                                            ║
  13.  ║  ────────────────────────────────────────────────────────────────────────  ║
  14.  ║  History   » Who....   When......    Why.................................  ║
  15.  ║  ────────────────────────────────────────────────────────────────────────  ║
  16.  ║    1.0       Gew·Whg   11/01/1993    File Created.                         ║
  17.  ║                                                                            ║
  18.  ║ ░░▒▒▓▓██▓▓▒▒░░ ░░▒▒▓▓██▓▓▒▒░░ ░░▒▒▓▓██▓▓▒▒░░ ░░▒▒▓▓██▓▓▒▒░░ ░░▒▒▓▓██▓▓▒▒░░ ║
  19.  ╚════════════════════════════════════════════════════════════════════════════╝
  20.  
  21.  
  22.     This is a sample application which demonstrates how to add multiple
  23. printer support to your own applications. To call the PRINTERS.EXE program
  24. from within the designer we added a menu selection to the main menu called
  25. appropiately "Select Printer" which calls the SP procedure. The SP procedure
  26. is a dummy input memory form whose sole purpose is to provide a setup procedure
  27. for our "RUN" as you may not use "RUN('PRINTERS')" as a valid procedure from
  28. a menu choice. See the setup procedure for SP as an example of how to call
  29. printers from within your app. The setup procedure for the report checks to
  30. see if a printer has been selected, and if so reads the printer control codes
  31. for the selected printer from PRN_CDS.DAT. Use the PRN_CDS file field names
  32. to add control codes to your report. See the PRT_TST procedure in the sample
  33. APP for more detail.
  34.  
  35.   This sample application is 100% designer generated with no other procedures
  36. or code hooks. It was developed using the STANDARD.MDL model file but will
  37. work unsing the network model as well.
  38.  
  39. NOTE: This sample assumes the the PRINTERS.EXE program and all if its data
  40.       files are in the current directory. Before running the compiled
  41.       sample application, be sure to copy the PRINTERS files into the
  42.       current directory.
  43.  
  44.   Below is a listing of all the available control codes for you to use in
  45. the generation of your reports. Simply use the code on the left in your
  46. reports to achieve the effect listed on the right.
  47.  
  48.  
  49.                       C:CPI10   =  10 cpi
  50.                       C:CPI12   =  12 CPI
  51.                       C:BON     =  Bold On
  52.                       C:BOFF    =  Bold Off
  53.                       C:CSB     =  Char Set - Bar Code
  54.                       C:CSL     =  Char Set - Legal
  55.                       C:CSLD    =  Char Set - Line Draw
  56.                       C:CSM7    =  Char Set - Math #7
  57.                       C:CSM8    =  Char Set - Math #8
  58.                       C:CSPC    =  Char Set - PC
  59.                       C:CSPF    =  Char Set - Pifont
  60.                       C:CSRE    =  Char Set - Roman Exn
  61.                       C:CSR8    =  Char Set - Roman #8
  62.                       C:CSUPS   =  Char Set - UPC
  63.                       C:CH1     =  Character Set #1
  64.                       C:CH2     =  Character Set #2
  65.                       C:CON     =  Compressed On
  66.                       C:COFF    =  Compressed Off
  67.                       C:CS10    =  Correspondance 10CPI
  68.                       C:CS12    =  Correspondance 12CPI
  69.                       C:DHON    =  Double Height On
  70.                       C:DHOFF   =  Double Height Off
  71.                       C:DWON    =  Double Wide On
  72.                       C:DWOFF   =  Double Wide Off
  73.                       C:EMON    =  Emphasized On
  74.                       C:EMOFF   =  Emphasized Off
  75.                       C:EXON    =  Expanded On
  76.                       C:EXOFF   =  Expanded Off
  77.                       C:FU      =  Floating Underline
  78.                       C:FC      =  Font - Courier
  79.                       C:FD      =  Font - Draft
  80.                       C:FH      =  Font - Helvetica #2
  81.                       C:FL      =  Font - Letter Gothic
  82.                       C:FLP     =  Font - Line Printer
  83.                       C:FP      =  Font - Prestige
  84.                       C:FSS     =  Font Sans Serif
  85.                       C:FS      =  Font Script
  86.                       C:FTR     =  Font - Times Roman
  87.                       C:FC1     =  Font Cart #1
  88.                       C:FC2     =  Font Cart #2
  89.                       C:FF      =  Form Feed
  90.                       C:ID1     =  Internat: Denmark #1
  91.                       C:ID2     =  Internat: Denmark #2
  92.                       C:IF1     =  Internat: France #1
  93.                       C:IG1     =  Internat: Germany #1
  94.                       C:II1     =  Internat:Italy #1
  95.                       C:IJ1     =  Internat:Japan #1
  96.                       C:ISP     =  Internat: Spain #1
  97.                       C:ISW     =  Internat: Sweeden #1
  98.                       C:IUK     =  Internat: United Kingdom #1
  99.                       C:IUS     =  Internat: USA #1
  100.                       C:ION     =  Italic On
  101.                       C:IOFF    =  Italic Off
  102.                       C:LMON    =  Landscape Mode On
  103.                       C:LMOFF   =  Landscape Mode Off
  104.                       C:NLON    =  Near Letter On
  105.                       C:NLOFF   =  Near Letter Off
  106.                       C:OCRA    =  OCR a
  107.                       C:OCRB    =  OCR B
  108.                       C:OCRBX   =  OCR B Ext
  109.                       C:P6      =  Pitch 6
  110.                       C:P8      =  Pitch 8
  111.                       C:P10     =  Pitch 10
  112.                       C:P12     =  Pitch 12
  113.                       C:P14     =  Pitch 14
  114.                       C:P16     =  Pitch 16.66
  115.                       C:PT6     =  Point 6
  116.                       C:PT8     =  Point 8
  117.                       C:PT10    =  Point 10
  118.                       C:PT12    =  Point 12
  119.                       C:PT14    =  Point 14
  120.                       C:PON     =  Proportional On
  121.                       C:POFF    =  Proportional Off
  122.                       C:QMON    =  Quiet Mode On
  123.                       C:QMOFF   =  Quiet Mode Off
  124.                       C:RS      =  Re Set
  125.                       C:SB      =  Stroke - Bold
  126.                       C:SL      =  Stroke - Light
  127.                       C:SM      =  Stroke - Medium
  128.                       C:SBON    =  Subscript On
  129.                       C:SBOFF   =  Supscript Off
  130.                       C:SHON    =  Shadow On
  131.                       C:SHOFF   =  Shadow Off
  132.                       C:SSON    =  Superscript On
  133.                       C:SSOFF   =  Superscript Off
  134.                       C:UON     =  Underline On
  135.                       C:UOFF    =  Underline Off
  136.                       C:VS6     =  Vertical Spacing 6 LPI
  137.                       C:VS8     =  Vertical Spacing 8LPI
  138.                       C:VS10    =  Vertical Spacing 10LPI
  139.                       C:ZS      =  Zero - Slashed
  140.                       C:ZU      =  Zero - Unslashed
  141.                       C:PTR_TYP = *
  142.  
  143. * This field contains either a "M" or a "L" depending on which printer type
  144.   was selected (M=Dot Matrix and L=Laser).
  145.  
  146.  
  147.  
  148.  
  149.    NOTE: Although all of the possible control codes are listed, not all
  150. are supported by every printer. If you are unsure whether a printer
  151. supports a code, refer to that specific printers manual.
  152.  
  153.